from django.conf.urls import url
from .views import *

urlpatterns = [
    url(r'^register', RegisterView.as_view(), name='register'),
    url(r'username/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$', UsernameCountView.as_view()),
    url(r'mobile/(?P<mobile>1[3-9][0-9]{9})/count/$', MobileCountView.as_view()),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^user_center_info/$', UserInfoView.as_view(), name='info'),
    url(r'^emails/$', EmailView.as_view()),
    url(r'^emails/verification/$', VerifyEmailView.as_view()),
    url(r'^pass/$', ChangePasswordView.as_view(), name='pass'),
    url(r'^address/$', AddressView.as_view(), name='address'),
    url(r'^browse_histories/$', UserBrowseHistory.as_view()),

]
